package com.tem.product.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 陈辉
 * @since 2023-11-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("product_do")
@ApiModel(value="ProductDo对象", description="")
public class ProductDo implements Serializable {
    private static final long serialVersionUID=898954323409871L;
    @ApiModelProperty(value = "操作表")
    @TableId(value = "product_do_id", type = IdType.AUTO)
    private Long productDoId;

    @ApiModelProperty(value = "商家")
    @TableField("product_id")
    private Long productId;

    @ApiModelProperty(value = "点评人")
    @TableField("customer_id")
    private Long customerId;

    @ApiModelProperty(value = "类型 1点赞 2收藏 3打赏")
    @TableField("do_type")
    private Integer doType;

    @ApiModelProperty(value = "时间")
    @TableField("do_time")
    private LocalDateTime doTime;
}